<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output method="html" indent="yes" />


<xsl:template match="tr">
	<div class="accessext_tr">
	TR<br />
	<xsl:apply-templates />
	</div>
</xsl:template>

<xsl:template match="td">
	<div class="accessext_td">
	TD<br />
	<xsl:apply-templates />
	</div>
</xsl:template>

<xsl:template match="th">
	TH<br />
	<xsl:apply-templates />
</xsl:template>

<xsl:template match="thead">
	TH<br />
	<xsl:apply-templates />
</xsl:template>

<xsl:template match="tbody">
	TBODY<br />
	<xsl:apply-templates />
</xsl:template>

<xsl:template match="tfoot">
	TFOOT<br />
	<xsl:apply-templates />
</xsl:template>

<xsl:template match="table">
	<div class="accessext_table">
	Table<br />
	<xsl:apply-templates />
	</div>
</xsl:template>

<xsl:template match="/html/body">
<html>
<head>
	<title>No Tables
		<xsl:if test="count(/html/head/title)=1"> for <xsl:value-of select="/html/head/title/text()" /></xsl:if>
	</title>
<style type="text/css">
.accessext_tr
{
border-width: 1px;
border-color: #FFCCCC;
}

.accessext_thead
{
border-width: 1px;
border-color: #999999;
}

.accessext_table
{
border-width: 1px;
border-color: black;
}

.accessext_td
{
border-width: 1px;
border-color: #CCCCFF;
}
</style>
</head>
<body>
	<h1>No Table View</h1>
	<p>This transform looks for tables in a given page, and disables them.</p>
	<hr />
	<xsl:apply-templates />
</body>
</html>
</xsl:template>
</xsl:stylesheet>